package com.song.shiro.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.song.shiro.entity.Permission;
import com.song.shiro.entity.Role;
import com.song.shiro.entity.User;

import java.util.List;

public interface UserService extends IService<User> {
    User queryByUsername(String username);

    List<Role> queryRolesByUsername(String username);

    List<Permission> queryPermissionsByUsername(String username);

    List<Role> queryRolesByUserId(String userId);

    List<Permission> queryPermissionsByUserId(String userId);
}
